#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>

int main(int argc,char *argv[])
{
    char *addr = "127.232.124.79";
    struct sockaddr_in addr_inet;

    if(inet_aton(addr, &addr_inet.sin_addr)) {
        printf("网络序数字IP地址：%#x \n", addr_inet.sin_addr.s_addr);
    }

    return 0;
}

